/**
 * Created by mahai on 2018/12/25.
 * 点赞
 */
const mongoose = require('mongoose');
const Schema = mongoose.Schema;

//创建 Schema
const UPSchema = new Schema({
    articleId:{
        type:String,
        required:true
    },
    upuser:{
        type:String,
        required:true
    },
    upuserId:{
        type:String,
        required:true
    },
    date:{
        type:Date,
        default:Date.now()
    }
});

module.exports = UP = mongoose.model('zan',UPSchema);